package com.qf.hospital.entity;

import java.io.Serializable;

/**
 * out_patient_type
 * @author 
 */
public class OutPatientType implements Serializable {
    /**
     * 项目id
     */
    private Integer outPatientId;

    /**
     * 项目名称
     */
    private String projectName;

    /**
     * 单位id
     */
    private Integer unit;

    /**
     * 单位名称
     */
    private String unitName;

    /**
     * 大项目id
     */
    private Integer bigProjectId;

    /**
     * 价格
     */
    private Double price;

    /**
     * 0 - 无需检查   ， 1 - 需要检查
     */
    private Integer ostate;

    private static final long serialVersionUID = 1L;

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public Integer getOutPatientId() {
        return outPatientId;
    }

    public void setOutPatientId(Integer outPatientId) {
        this.outPatientId = outPatientId;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public Integer getUnit() {
        return unit;
    }

    public void setUnit(Integer unit) {
        this.unit = unit;
    }

    public Integer getBigProjectId() {
        return bigProjectId;
    }

    public void setBigProjectId(Integer bigProjectId) {
        this.bigProjectId = bigProjectId;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getOstate() {
        return ostate;
    }

    public void setOstate(Integer ostate) {
        this.ostate = ostate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        OutPatientType other = (OutPatientType) that;
        return (this.getOutPatientId() == null ? other.getOutPatientId() == null : this.getOutPatientId().equals(other.getOutPatientId()))
            && (this.getProjectName() == null ? other.getProjectName() == null : this.getProjectName().equals(other.getProjectName()))
            && (this.getUnit() == null ? other.getUnit() == null : this.getUnit().equals(other.getUnit()))
            && (this.getBigProjectId() == null ? other.getBigProjectId() == null : this.getBigProjectId().equals(other.getBigProjectId()))
            && (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice()))
            && (this.getOstate() == null ? other.getOstate() == null : this.getOstate().equals(other.getOstate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOutPatientId() == null) ? 0 : getOutPatientId().hashCode());
        result = prime * result + ((getProjectName() == null) ? 0 : getProjectName().hashCode());
        result = prime * result + ((getUnit() == null) ? 0 : getUnit().hashCode());
        result = prime * result + ((getBigProjectId() == null) ? 0 : getBigProjectId().hashCode());
        result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode());
        result = prime * result + ((getOstate() == null) ? 0 : getOstate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", outPatientId=").append(outPatientId);
        sb.append(", projectName=").append(projectName);
        sb.append(", unit=").append(unit);
        sb.append(", bigProjectId=").append(bigProjectId);
        sb.append(", price=").append(price);
        sb.append(", ostate=").append(ostate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}